package demo3;

public class user {
	public static void main(String[] args) {
		// 一开始有那么几间实验室
		Room R1 = new Room(1, "数学实验室");
		Room R2 = new Room(2, "物理实验室");
		Room R3 = new Room(3, "计算机实验室");
		Room R4 = new Room(4, "化学实验室");
		Room R5 = new Room(5, "生物实验室");

		// 有那么两个个学生
		Student ST1 = new Student(1, "张木凡");
		Student ST2 = new Student(2, "李泽言");

		// 两个学生分别分配打扫那几个实验室
		ST1.setLaboratory(new Room[] { R1, R2 });
		ST2.setLaboratory(new Room[] { R3, R4, R5 });

		// 共打扫五周，打扫的时候，每个实验室都有一个打扫的评分
		R1.setCleanlinessScore(new String[] { "A", "B", "C", "B", "A" });
		R2.setCleanlinessScore(new String[] { "A", "D", "A", "A", "C" });
		R3.setCleanlinessScore(new String[] { "A", "A", "A", "A", "A" });
		R4.setCleanlinessScore(new String[] { "B", "A", "B", "A", "B" });
		R5.setCleanlinessScore(new String[] { "A", "B", "A", "C", "A" });

		// 打扫完毕后，计算每个学生的清洁记录及工资
		ST1.print();
		ST2.print();
	}

}